package com.ruoyi.quartz.mapper;

import java.util.List;
import com.ruoyi.quartz.domain.YongyouCgrk;
import org.apache.ibatis.annotations.Param;

/**
 * 采购入库Mapper接口
 * 
 * @author SYF
 * @date 2025-04-17
 */
public interface YongyouCgrkMapper 
{
    /**
     * 查询采购入库
     * 
     * @param vouchdate 采购入库主键
     * @return 采购入库
     */
    public YongyouCgrk selectYongyouCgrkByVouchdate(String vouchdate);

    /**
     * 查询采购入库列表
     * 
     * @param yongyouCgrk 采购入库
     * @return 采购入库集合
     */
    public List<YongyouCgrk> selectYongyouCgrkList(YongyouCgrk yongyouCgrk);

    /**
     * 新增采购入库
     * 
     * @param yongyouCgrk 采购入库
     * @return 结果
     */
    public int insertYongyouCgrk(YongyouCgrk yongyouCgrk);

    /**
     * 修改采购入库
     * 
     * @param yongyouCgrk 采购入库
     * @return 结果
     */
    public int updateYongyouCgrk(YongyouCgrk yongyouCgrk);

    /**
     * 删除采购入库
     * 
     * @param vouchdate 采购入库主键
     * @return 结果
     */
    public int deleteYongyouCgrkByVouchdate(String vouchdate);

    public int deleteYongyouCgrkByDate(@Param("vouchdate") String vouchdate);

    /**
     * 批量删除采购入库
     * 
     * @param vouchdates 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteYongyouCgrkByVouchdates(String[] vouchdates);

    public int clearCgrk();
}
